home *** CD-ROM | disk | FTP | other *** search
/ Oh!X 2001 Spring / Oh!X 2001 Spring Special CD-ROM (Japan).7z / Oh!X 2001 Spring Special CD-ROM (Japan) (Track 1).bin / VC / Alpha / AlphaWindow.h < prev    next >
C/C++ Source or Header  |  2000-08-11  |  1KB  |  43 lines

  1. // AlphaWindow.h: AlphaWindow クラスのインターフェイス
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_ALPHAWINDOW_H__43ECC1AD_6FAA_11D4_9897_00C00CB069F5__INCLUDED_)
  6. #define AFX_ALPHAWINDOW_H__43ECC1AD_6FAA_11D4_9897_00C00CB069F5__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #include "resource.h"
  13.  
  14. BOOL InitInstance( HINSTANCE hInstance );
  15. void ExitInstance();
  16. LONG APIENTRY MainWndProc( HWND hWnd, UINT message, UINT wParam, LONG lParam );
  17.  
  18. class AlphaWindow  
  19. {
  20. public:
  21.     AlphaWindow( HINSTANCE hInstance );
  22.     virtual ~AlphaWindow();
  23.     HWND Create();
  24.     LRESULT WndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
  25.     HBITMAP CreateAlphaContainedBitmap( HBITMAP hBitmap, HBITMAP hAlpha );
  26.  
  27.     HINSTANCE m_hInstance;
  28.     HWND m_hWnd;
  29.     HDC m_hDC;
  30.     HBITMAP m_hBitmap;
  31.     int m_nWidth, m_nHeight;
  32.     HMENU m_hMenu;
  33.  
  34.     // メッセージ関数群
  35.     void OnCreate( HWND hWnd );
  36.     void OnDestroy();
  37.     void OnPaint( HDC hDC );
  38.     int OnNcHitTest( int xPos, int yPos );
  39.     void OnNcRButtonDown( int nHittest, POINTS pts );
  40. };
  41.  
  42. #endif // !defined(AFX_ALPHAWINDOW_H__43ECC1AD_6FAA_11D4_9897_00C00CB069F5__INCLUDED_)
  43.